<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <div id="app1">
        <span data-bind="text:name" ></span>
        <input type="text" data-bind="value:newName" />
        <button type="button" data-bind="click:setName" >改名</button>
        <button type="button" data-bind="click:loadModule" >加载模块</button>
        <p>组件</p>
        <!-- ko if: component -->
        <div data-bind="component:component"></div> 
        <!-- /ko -->
    </div>
    <script type="text/javascript" src="./require.js" data-main="main.js"></script>
</body>
</html>